package com.kmb.provider.dto;

import java.util.Arrays;

public class MaterialsEntity {

    /**
     * 资料ID
     */
    private int sourceId = 0;

    /**
     * 资料类型
     */
    private int sourceType = 0;

    /**
     * 资料标题
     */
    private String sourceTitle = "";

    /**
     * 资料描述
     */
    private String sourceDesc = "";

    /**
     * 版本
     */
    private String edition = "";

    /**
     * 图片路径
     */
    private String imgPath = "";


    /**
     * 文件路径
     */
    private String filePath = "";

    /**
     * 标签
     */
    private String[] label;

    /**
     * 创建时间
     */
    private String createTime = "";

    /**
     * 创建人
     */
    private String createUser = "";

    /**
     * 更新时间
     */
    private String updateTime = "";

    /**
     * 更新人
     */
    private String updateUser = "";

    /**
     * 用户下载次数
     */
    private long downloadCount = 0;

    public long getDownloadCount() {
        return downloadCount;
    }

    public void setDownloadCount(long downloadCount) {
        this.downloadCount = downloadCount;
    }

    public int getSourceId() {
        return sourceId;
    }

    public void setSourceId(int sourceId) {
        this.sourceId = sourceId;
    }

    public int getSourceType() {
        return sourceType;
    }

    public void setSourceType(int sourceType) {
        this.sourceType = sourceType;
    }

    public String getSourceTitle() {
        return sourceTitle;
    }

    public void setSourceTitle(String sourceTitle) {
        this.sourceTitle = sourceTitle;
    }

    public String getSourceDesc() {
        return sourceDesc;
    }

    public void setSourceDesc(String sourceDesc) {
        this.sourceDesc = sourceDesc;
    }

    public String getEdition() {
        return edition;
    }

    public void setEdition(String edition) {
        this.edition = edition;
    }

    public String getImgPath() {
        return imgPath;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String[] getLabel() {
        return label;
    }

    public void setLabel(String[] label) {
        this.label = label;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    @Override
    public String toString() {
        return "MaterialsEntity{" +
                "sourceId=" + sourceId +
                ", sourceType=" + sourceType +
                ", sourceTitle='" + sourceTitle + '\'' +
                ", sourceDesc='" + sourceDesc + '\'' +
                ", edition='" + edition + '\'' +
                ", imgPath='" + imgPath + '\'' +
                ", filePath='" + filePath + '\'' +
                ", label=" + Arrays.toString(label) +
                ", createTime='" + createTime + '\'' +
                ", createUser='" + createUser + '\'' +
                ", updateTime='" + updateTime + '\'' +
                ", updateUser='" + updateUser + '\'' +
                '}';
    }
}
